<?php if (!defined('THINK_PATH')) exit();?><!-- public:header 以下内容 -->
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>网站后台管理中心- Powered by 74cms.com</title>
	<link rel="shortcut icon" href="<?php echo C('qscms_site_dir');?>favicon.ico"/>
	<meta name="author" content="骑士CMS" />
	<meta name="copyright" content="74cms.com" />
	<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">  -->
	<link href="__ADMINPUBLIC__/css/common.css?v=<?php echo strtotime('today');?>" rel="stylesheet" type="text/css">
	<script src="__ADMINPUBLIC__/js/jquery.min.js"></script>
	<script src="__ADMINPUBLIC__/js/jquery.highlight-3.js"></script>
	<script src="__ADMINPUBLIC__/js/jquery.vtip-min.js"></script>
	<script src="__ADMINPUBLIC__/js/jquery.modal.dialog.js"></script>
	<script type="text/javascript" src="__ADMINPUBLIC__/js/laydate/laydate.js"></script>
	<!--[if lt IE 9]>
	<script type="text/javascript" src="__ADMINPUBLIC__/js/PIE.js"></script>
	<script type="text/javascript">
		(function ($) {
			$.pie = function (name, v) {
				// 如果没有加载 PIE 则直接终止
				if (!PIE) return false;
				// 是否 jQuery 对象或者选择器名称
				var obj = typeof name == 'object' ? name : $(name);
				// 指定运行插件的 IE 浏览器版本
				var version = 9;
				// 未指定则默认使用 ie10 以下全兼容模式
				if (typeof v != 'number' && v < 9) {
					version = v;
				}
				// 可对指定的多个 jQuery 对象进行样式兼容
				if ($.browser.msie && obj.size() > 0) {
					if ($.browser.version * 1 <= version * 1) {
						obj.each(function () {
							PIE.attach(this);
						});
					}
				}
			}
		})(jQuery);
		if ($.browser.msie) {
			$.pie('.pie_about');
		};
	</script>
	<![endif]-->
	<script src="__ADMINPUBLIC__/js/jquery.disappear.tooltip.js"></script>
	<script src="__ADMINPUBLIC__/js/common.js"></script>
	<script>
		var URL = '/index.php/admin/company',
			SELF = '/index.php?m=admin&amp;c=company&amp;a=add',
			ROOT_PATH = '/index.php/admin',
			APP	 =	 '/index.php';

		var qscms = {
			district_level : "<?php echo C('qscms_category_district_level');?>",
			default_district : "<?php echo C('qscms_default_district');?>"
		};
	</script>
	<?php echo ($synsitegroupunbindmobile); ?>
	<?php echo ($synsitegroupregister); ?>
	<?php echo ($synsitegroupedit); ?>
	<?php echo ($synsitegroup); ?>
</head>
<body>

<!-- public:header 以上内容 -->
<?php if(empty($menu_title)): ?><div class="allpagetop">后台管理中心<strong>/</strong>首页</div>
	<?php else: ?>
	<div class="allpagetop"><?php echo ($menu_title); ?><strong>/</strong><?php echo ($sub_menu_title); ?></div><?php endif; ?>
<div class="mains">
	<div class="h1tit">
		<div class="h1">
            <?php if($sub_menu['pageheader']): echo ($sub_menu["pageheader"]); ?>
                <?php else: ?>
                <!--欢迎登录 <?php echo C('qscms_site_name');?> 管理中心！--><?php endif; ?>
        </div>
        <?php if(!empty($sub_menu['menu'])): ?><div class="topnav">
                <?php if(is_array($sub_menu['menu'])): $i = 0; $__LIST__ = $sub_menu['menu'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><a href="<?php echo U($val['module_name'].'/'.$val['controller_name'].'/'.$val['action_name']); echo ($val["data"]); if($isget and $_GET): echo get_first(); endif; if($_GET['_k_v']): ?>&_k_v=<?php echo (_I($_GET['_k_v'])); endif; ?>" class="<?php echo ($val["class"]); ?>"><?php echo ($val["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                <div class="clear"></div>
            </div><?php endif; ?>
		<div class="clear"></div>
	</div>
<form id="form1">
<div class="toptit">会员资料</div>
<div class="form_main width150">
    <div class="fl">用户名:</div>
    <div class="fr">
        <input name="username" type="text" class="input_text_default" maxlength="25" value=""/>
    </div>
    <div class="fl">手机号:</div>
    <div class="fr">
        <input name="mobile" type="text" class="input_text_default" maxlength="11" value=""/>
    </div>
    <div class="fl">登录密码:</div>
    <div class="fr">
        <input name="password" type="password" class="input_text_default" maxlength="25" value=""/>
    </div>
    <div class="fl">再次输入密码:</div>
    <div class="fr">
        <input name="repassword" type="password" class="input_text_default" maxlength="25" value=""/>
    </div>
    <div class="clear"></div>
</div>
<div class="toptit">企业资料</div>
<div class="form_main width150">
    <div class="fl">公司名称:</div>
    <div class="fr">
        <input name="companyname" type="text" class="input_text_default" maxlength="30" value=""/>
    </div>
    <div class="fl">公司简称:</div>
    <div class="fr">
        <input name="short_name" type="text" class="input_text_default" maxlength="30" value="<?php echo ($info["short_name"]); ?>"/>
    </div>
    <div class="fl">认证状态:</div>
    <div class="fr">
        <div class="imgradio">
            <input name="audit" type="hidden" value="0">
            <div class="radio " data="1">认证通过</div>
            <div class="radio " data="2">等待认证</div>
            <div class="radio " data="3">认证未通过</div>
            <div class="radio select" data="0">未认证</div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 企业性质:</div>
    <div class="fr">
        <div class="imgradio J_company_nature">
            <input name="nature" type="hidden" value="0">
            <input name="nature_cn" type="hidden" value="" id="nature_cn"/>
            <div class="radio select" data="0" title="请选择">请选择</div>
            <?php if(is_array($category['QS_company_type'])): $i = 0; $__LIST__ = $category['QS_company_type'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nature): $mod = ($i % 2 );++$i;?><div class="radio <?php if(($info["nature"]) == $key): ?>select<?php endif; ?>" data="<?php echo ($key); ?>" title="<?php echo ($nature); ?>"><?php echo ($nature); ?></div><?php endforeach; endif; else: echo "" ;endif; ?>
            <div class="clear"></div>
        </div>
    </div>
    <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 所属行业:</div>
    <div class="fr">
        <input name="trade_cn" id="trade_cn" type="text" class="input_text_default arrow J_resuletitle_trade" value="请选择所属行业" readonly="readonly" data-title="请选择所属行业" data-multiple="false" data-maxnum="0" data-width="682"/>
        <input class="J_resultcode_trade" name="trade" id="trade" type="hidden" value="" />
    </div>
    <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 所在地区:</div>
    <div class="fr">
        <input name="category_cn" id="district_cn" type="text" class="input_text_default arrow J_resuletitle_city" value="请选择工作地区" readonly="readonly" data-toggle="funCityModal" data-title="请选择地区" data-multiple="false" data-maximum="0" data-width="760"/>
        <input class="J_resultcode_city" name="district" id="district" type="hidden" value="" keep="" />
    </div>
    <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 公司规模:</div>
    <div class="fr">
        <div class="imgradio J_company_scale">
            <input name="scale" type="hidden" value="">
            <input name="scale_cn" type="hidden" value="" id="scale_cn"/>
            <div class="radio select" data="0" title="请选择">请选择</div>
            <?php if(is_array($category['QS_scale'])): $i = 0; $__LIST__ = $category['QS_scale'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$scale): $mod = ($i % 2 );++$i;?><div class="radio" data="<?php echo ($key); ?>" title="<?php echo ($scale); ?>"><?php echo ($scale); ?></div><?php endforeach; endif; else: echo "" ;endif; ?>
            <div class="clear"></div>
        </div>
    </div>
    <div class="fl">注册资金:</div>
    <div class="fr">
        <div style="float: left;">
            <input name="registered" type="text" class="input_text_default" maxlength="5" value="" style="width: 100px;" onKeyUp="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/> 万
        </div>
        <div class="imgradio" style="float: left; margin-left: 20px;">
            <input name="currency" type="hidden" value="万人民币">
            <div class="radio select" data="万人民币" title="万人民币">人民币</div>
            <div class="radio " data="万美元" title="万美元">美元</div>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="fl">企业福利:</div>
    <div class="fr">
        <input name="tag_cn" id="tag_cn" type="text" class="input_text_default arrow J_resuletitle_jobtag" value="请选择企业福利" readonly="readonly" data-title="请选择企业福利" data-multiple="true" data-maxnum="6" data-width="582"/>
        <input class="J_resultcode_jobtag" name="tag" id="tag" type="hidden" value="" />
    </div>
    <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 企业联系人:</div>
    <div class="fr">
        <input name="contact" type="text" class="input_text_default middle" maxlength="15" value=""/>
		<label><input name="contact_show" type="checkbox" value="1" checked="checked" />对外公开</label>
    </div>
    <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 手机号码:</div>
    <div class="fr">
        <input name="telephone" type="text" class="input_text_default middle" maxlength="11" value="" onKeyUp="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
		<label><input name="telephone_show" type="checkbox" value="1" checked="checked" />对外公开</label>
    </div>
    <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 固定电话:</div>
    <div class="fr">
        <input name="landline_tel_first" type="text" class="input_text_default" maxlength="4" value="" style="width: 70px;" onKeyUp="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/> -
        <input name="landline_tel_next" type="text" class="input_text_default" maxlength="11" value="" style="width: 207px;" onKeyUp="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/> -
        <input name="landline_tel_last" type="text" class="input_text_default" maxlength="6" value="" style="width: 70px;" onKeyUp="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
		<label><input name="landline_tel_show" type="checkbox" value="1" checked="checked" />对外公开</label>
    </div>
    <div class="fl">公司网址:</div>
        <div class="fr">
            <input name="website" type="text" class="input_text_default middle" maxlength="80" value=""/>
        </div>
        <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 联系地址:</div>
        <div class="fr">
            <input name="address" type="text" class="input_text_default middle" maxlength="50" value=""/>
        </div>
        <div class="fl">公司简介:</div>
        <div class="fr">
            <input name="short_desc" type="text" class="input_text_default" maxlength="120" value=""/>
        </div>
        <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 公司介绍:</div>
        <div class="fr">
            <textarea id="contents" name="contents" class="input_text_default" style="line-height:200%; height:150px;" onpropertychange="if(this.value.length&gt;2000){this.value=this.value.slice(0,2000)}"></textarea>
            <div style="color: #999999; padding-top: 10px;">请将字数控制在2000字以内。</div>
        </div>
    <div class="clear"></div>
</div>
<div class="toptit"><?php echo C('qscms_points_byname');?>/套餐设置</div>
<div class="form_main width150">
    <div class="fl">是否赠送<?php echo C('qscms_points_byname');?>:</div>
    <div class="fr">
        <div class="imgradio">
            <input name="regpoints" type="hidden" value="y">
            <div class="radio yes_points select" data="y" title="赠送">赠送</div>
            <div class="radio no_points" data="n" title="不赠送">不赠送</div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="regpoints_num">
        <div class="fl">赠送<?php echo C('qscms_points_byname');?>数量:</div>
        <div class="fr">
            <input name="regpoints_num" type="text" class="input_text_default" maxlength="11" value="0" onKeyUp="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
        </div>
    </div>
    <div class="fl">赠送服务套餐:</div>
    <div class="fr">
        <div class="imgradio">
            <input name="reg_service" type="hidden" value="<?php echo C('qscms_reg_service');?>">
            <?php if(is_array($givesetmeal)): $i = 0; $__LIST__ = $givesetmeal;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="radio <?php if((C("qscms_reg_service")) == $key): ?>select<?php endif; ?>" data="<?php echo ($key); ?>" title="<?php echo ($vo); ?>"><?php echo ($vo); ?></div><?php endforeach; endif; else: echo "" ;endif; ?>
            <div class="clear"></div>
        </div>
    </div>
    <div class="fl"><span style="color:#FF0000">是否已收费:</span></div>
    <div class="fr">
        <div data-code="0,1" class="imgchecked_small select"><input name="is_money" type="hidden" value="1" /></div>
        <div class="clear"></div>
    </div>
    <div class="log_amount">
        <div class="fl"><span style="color:#FF0000">收费金额:</span></div>
        <div class="fr">
            <input name="log_amount" type="text" class="input_text_default middle" maxlength="5" value="<?php echo ($setmeal["log_amount"]); ?>"/> 元
            <span style="color: #999999;">请填写收费金额</span>
        </div>
    </div>
    <div class="fl"></div>
    <div class="fr">
        <input type="hidden" name="utype"  value="1"/>
        <input type="button" class="admin_submit" value="确定" id="J_submit"/>
        <input type="button" class="admin_submit" value="返回" onclick="window.location.href='<?php echo U('index');?>'"/>
    </div>
    <div class="clear"></div>
</div>
</div>
<!-- public:footer 以下内容 -->
<div class="footer link_blue">
    Powered by <a href="https://www.74cms.com" target="_blank"><span style="color:#009900">74</span><span
        style="color: #FF3300">cms</span></a> v<?php echo C('QSCMS_VERSION');?>
</div>
<div class="layui-floatmenu">
    <div class="J_suggest item" data-url="<?php echo U('Suggest/add');?>"></div>
    <div class="J_suggestList list item" data-url="<?php echo U('Suggest/index');?>">
      <?php if($suggest): ?><span></span><?php endif; ?>
    </div>
  </div>
<script src="__ADMINPUBLIC__/js/layui.js"></script>
<!-- public:footer 以上内容 -->
<script>
  layui.use(['form', 'element'], function(){
  var element = layui.element;
  var form = layui.form;
  var layer = layui.layer;
  var $ = layui.jquery;
  var loading = layer.load(0, {shade: [0.3,'#fff'],time:500});
  $('.J_suggest').click(function(){
    var url = $(this).data('url');
    $.getJSON(url,function(result){
      layer.open({
          title:'反馈',
          type: 1,
          area: ['800px', 'auto'], //宽高
          content: result.data
      });
    });
  });
  $('.J_suggestList').click(function(){
    var url = $(this).data('url');
    var f = $(this).find('span');
    $.getJSON(url,function(result){
      layer.open({
          title:'历史反馈记录',
          type: 1,
          area: ['800px', '690px'], //宽高
          content: result.data
      });
      f.remove();
    });
  });
});
</script>
<?php $tag_load_class = new \Common\qscmstag\loadTag(array('type'=>'category','search'=>'1','cache'=>'0','列表名'=>'list',));$list = $tag_load_class->category();?>
<script type="text/javascript" src="../public/js/jquery.user.city.js"></script>
<script type="text/javascript" src="../public/js/jquery.modal.userselectlayer.js"></script>
</body>
<script type="text/javascript">
    $(document).ready(function () {
        $('#J_submit').click(function(){
            var that = $(this);
            if(that.hasClass('disabled')){
                return false;
            }
            that.val('正在保存...').addClass('disabled');
            $.post("<?php echo U('add');?>",$('#form1').serialize(),function(result){
                if(result.status==1){
                    disapperTooltip("success", result.msg,function(){
                        location.href='<?php echo U("index");?>';
                    });
                }else{
                    disapperTooltip("remind", result.msg,function(){
                        that.val('确定').removeClass('disabled');
                    });
                    return false;
                }
            },'json');
        });
        $(".no_points").click(function(){
            $(".regpoints_num").hide();
        });
        $(".yes_points").click(function(){
            $(".regpoints_num").show();
        });
        // 公司性质cn
        $(".J_company_nature .radio").live('click',function(){
            $("#nature_cn").val($(this).attr("title"));
        });
        // 公司规模cn
        $(".J_company_scale .radio").live('click',function(){
            $("#scale_cn").val($(this).attr("title"));
        });
    });
</script>
</html>